package com.shopping.runbackground.coupons.dao;

import com.github.pagehelper.Page;
import com.shopping.entity.PageResult;
import com.shopping.runbackground.coupons.api.pojo.CommonCoupons;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface CommomConponsDao {
    Page<CommonCoupons> findAll();

    void insert(CommonCoupons commonCoupons);

    void update(CommonCoupons commonCoupons);

    void delete(Integer ccId);


    Page<CommonCoupons> findbynameordate(@Param("ccName") String ccName, @Param("startime") String startime, @Param("endtime") String endtime);

}
